package Queue1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-05-12
 * Time: 15:45
 */
public class Test {
    public static void main(String[] args) {
        MyQueue q = new MyQueue();

    }
    public static void main1(String[] args) {
        MyQueue queue = new MyQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        int x = queue.poll();
        System.out.println(x);
        int x1 = queue.poll();
        System.out.println(x1);
        System.out.println(queue.size());
        System.out.println(queue.peek());
    }

}
